<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<?php
session_start();

//检测是否登录，若没登录则转向登录界面
if(!isset($_SESSION['name']))
{
    echo "您尚未登录，请重新登录以后，才能进入用户空间";
    exit();
}
echo "{$_SESSION['name']}成功进入用户空间";
?>

</html>